﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CadStrategy2013.CgqStyle
{
    public partial class JySeledtForm : Form
    {
        private string m_zuHeStyle;
        public string ZuHeStyle
        {
            get { return m_zuHeStyle; }
            set { m_zuHeStyle = value; }
        }
        private string m_savePath;
        public string SavePath
        {
            get { return m_savePath; }
            set { m_savePath = value; }
        }
        private bool isFuJia;

        public bool IsFuJia
        {
            get { return isFuJia; }
            set { isFuJia = value; }
        }
        public JySeledtForm()
        {
            InitializeComponent();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog f = new FolderBrowserDialog();
            if (f.ShowDialog() == DialogResult.OK)
            {
                textBox1.Text = f.SelectedPath;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
                MessageBox.Show("请选择保存路径");
            else
            {
                SavePath = textBox1.Text;
                ZuHeStyle = comboBox1.Text;
                isFuJia = checkBox1.Checked;
                if (!System.IO.Directory.Exists(SavePath))
                {
                    System.IO.Directory.CreateDirectory(SavePath);
                }
            }
        }
    }
}
